﻿using System;
using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using MPACore.Phonebook.Phonebooks.Persons;

namespace MPACore.Phonebook.Phonebooks.PhoneNumbers.Dto
{
    [AutoMapTo(typeof(PhoneNumber))]
    public class PhoneNumberEditDto
    {
        /// <summary>
        /// 电话号码
        /// </summary>
        [Required]
        [MaxLength(PhonebookConsts.MaxPhoneNumberLength)]
        public string Number { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public PhoneNumberType Type { get; set; }
    }
}